#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QListWidget>
#include "collagewindow.h"

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow , public CollageWindow
{
    Q_OBJECT
    
public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

    void setApercu(QPixmap*);
    void checkExtra(bool b);
    virtual void on_update_delete();
    virtual void showMessage(QString);
    void refreshParams(TypeParam param, bool updateEnable, bool updateContent);

public slots:
    void on_cercle_radioButton_clicked();
    void on_rectangle_radioButton_clicked();
protected:

private slots:
    void item_selection_changed();
    void on_ajoutButton_clicked();
    void on_retireButton_clicked();
    void on_cleanButton_clicked();
    void on_extra_radioButton_clicked();
    void on_creerButton_clicked();
    void on_actionAjouter_des_photos_triggered();
    void on_actionQuitter_triggered();
    void on_actionNouveau_triggered();
    void on_DistanceSlider_sliderMoved(int position);
    void on_pourcentSpinBox_valueChanged(int arg1);
    void on_apercuButton_clicked();
    void on_actionAide_la_cr_ation_triggered();
    void on_modeDistanceButton_clicked();

    //////Parametres///////
    void on_modeNombrePhotosButton_clicked();
    void on_toutRadioButton_clicked();
    void on_nPhotosRadioButton_clicked();
    void on_nPhotosEdit_editingFinished();
    void on_modeTaillePhotoButton_clicked();
    void on_taillePhotoEdit_editingFinished();
    void on_modeTailleCollageButton_clicked();
    void on_largeurEdit_editingFinished();
    void on_hauteurEdit_editingFinished();
    void on_formatComboBox_currentIndexChanged(int index);
    void on_formatTaillePhotoComboBox_currentIndexChanged(int index);
    void on_restaureButton_clicked();

    void on_BColorBordure_clicked();

    void on_SLSizeBordure_valueChanged(int value);

    void on_NUDSizeBordure_valueChanged(int arg1);


private:
    Ui::MainWindow *ui;

    QPixmap *pixCollage;

    bool collageCreated;
signals:
     void majAnimation();
};



#endif // MAINWINDOW_H
